import os

import pytest

from Common.reader import Reader

CONFIG_INI = 'Conf/config.ini'

if __name__ == '__main__':
    reader = Reader()
    config = reader.read_ini(CONFIG_INI)
    case_main_path = os.path.join(os.path.dirname(__file__), 'Testcase', config['project']['project_name'], 'case','main.py')
    # pytest.main(['-vs','Testcase/default/case/aaa.py'])
    os.system(f'python {case_main_path}')


    # print(LoadCase('1', 2).project_path)